//
//  HomeRecommendCell.m
//  YangWifi
//
//  Created by zuoxueliangduyuanzhuo on 2017/7/4.
//  Copyright © 2017年 zuoxueliangduyuanzhuo. All rights reserved.
//

#import "HomeRecommendCell.h"

@interface HomeRecommendCell ()

@property (nonatomic ,weak) IBOutlet UILabel *packageNameL;

@property (nonatomic ,weak) IBOutlet UILabel *packageContentL;

@property (nonatomic ,weak) IBOutlet UIButton *payBtn;

@end
@implementation HomeRecommendCell

- (void)setData:(ProductInfoModel *)data
{
    _data = data;
    _packageNameL.text = data.packageName;
    _packageContentL.text = data.packageContent;

}

- (IBAction)moreClick:(id)sender
{
    if (self.morePackageHandler) {
        self.morePackageHandler();
    }
}

- (IBAction)payClick:(id)sender
{
    if (self.recommendPayHandler) {
        self.recommendPayHandler(self.data);
    }
}

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

@end
